package org.jeecg.modules.company.facade.impl;



import org.springframework.stereotype.Service;


import org.jeecg.base.facade.impl.IFacadeImpl;
import org.jeecg.modules.company.entity.CompanyPurse;
import org.jeecg.modules.company.facade.ICompanyPurseFacade;
import org.jeecg.modules.company.service.ICompanyPurseService;
import org.jeecg.modules.company.vo.CompanyPurseVo;
import org.springframework.beans.BeanUtils;

import org.springframework.beans.factory.annotation.Autowired;


/**
 * @Description: 公司钱包（质维码额度）
 * @Author: zj
 * @Date:   2020-05-26
 * @Version: V1.0
 */


@Service
public class CompanyPurseFacadeImpl extends IFacadeImpl<CompanyPurseVo, CompanyPurse, ICompanyPurseService>  implements ICompanyPurseFacade<CompanyPurseVo, CompanyPurse> {
        @Autowired
        private ICompanyPurseService companyPurseService;


         @Override
         public CompanyPurse po2Vo(CompanyPurseVo vo) {
                CompanyPurse po = new CompanyPurse();
                if(vo==null){
                   return null;
                }
                BeanUtils.copyProperties(vo, po);
                return po;
         }

         @Override
         public CompanyPurseVo vo2Po(CompanyPurse po) {
                CompanyPurseVo vo = new CompanyPurseVo();
                 if(po==null){
                     return null;
                  }
                BeanUtils.copyProperties(po, vo);
                return vo;
         }

}
